{% extends 'base.html' %}
{% block title %}
帖子
{% endblock %}
{% block content %}
<div class="am-container">
{% for plate in plates %}
<div class="am-u-sm-12" style="margin-top: 10px;">
    <div class="am-panel am-panel-default">
        <div class="am-panel-hd">{{ plate.name }}<a href="{% url 'plate_detail' plate.key %}" style="float: right;">查看全部</a></div>
        <div class="am-panel-bd">
            {% for post in posts %}
            {% if post.plate == plate.name %}
            <div style="border-bottom: 1px solid;border-color: #eeeeee;">
            <a href="{% url 'post_detail' post.key %}">{{ post.title }}</a>
            <strong style="float: right;"><a href="{% url 'userinfo' post.user.key %}"style="color: {{ post.user.color }};">{{ post.user.username }}</a></strong>
            </div>
            {% endif %}
            {% endfor %}
        </div>
        </div>
</div>
{% endfor %}
</div>
{% endblock %}